﻿using System;
using fastCSharp;

namespace diantou.web.management
{
    /// <summary>
    /// 提交记录
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPool = true)]
    partial class contestJudgeList : adminView<contestJudgeList>
    {
        /// <summary>
        /// 比赛
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.dataAccess.contest contest;
        /// <summary>
        /// 测试提交集合
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.dataAccess.contestJudge[] judges;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="contestId"></param>
        /// <param name="problemId"></param>
        /// <param name="language"></param>
        /// <param name="judgeValue"></param>
        /// <param name="isRetry"></param>
        /// <param name="page"></param>
        /// <returns></returns>
        private bool loadView(int contestId, int userId, int problemId, diantou.dataModel.judgeState.languageType language, OnlineJudge.JudgeValue judgeValue, bool isRetry, int page)
        {
            if ((contest = diantou.dataAccess.clientCache.Contest[contestId]) != null)
            {
                judges = diantou.dataAccess.tcpCall.contestJudge.get(contestId, userId, problemId, language, judgeValue, isRetry, pageInfo.Size = 40, pageInfo.Page = page, out pageInfo.Count);
                return true;
            }
            return false;
        }
    }
}
